<div class="febs-container" id="task-edit">
    <div class="febs-open-body">
        <form class="layui-form" action="" lay-filter="task-edit-form">
            <div class="layui-form-item">
                <div class="layui-row">
                    <div class="layui-col-md6">
                        <label class="layui-form-label"    >项目编号:</label>
                        <div class="layui-input-block-html"  th:text="${schedule.projectCode}"></div>
                    </div>

                    <div class="layui-col-md6">
                        <label class="layui-form-label"    >项目名称:</label>
                        <div class="layui-input-block-html"  th:text="${schedule.projectName}">
                        </div>
                    </div>
                </div>
            </div>

            <div class="layui-form-item">
                <div class="layui-row">
                    <div class="layui-col-md6">
                        <label class="layui-form-label"     >项目经理:</label>
                        <div class="layui-input-block-html"  th:text="${schedule.managers}">
                        </div>
                    </div>

                    <div class="layui-col-md6">
                        <label class="layui-form-label"    >客户单位:</label>
                        <div class="layui-input-block-html"  th:text="${schedule.custName}">
                        </div>
                    </div>
                </div>
            </div>

            <div class="layui-form-item">
                <div class="layui-row">
                    <div class="layui-col-md6">
                        <label class="layui-form-label"   >客户联系人:</label>
                        <div class="layui-input-block-html"  th:text="${schedule.contact}">
                            <!--                            <input type="text" name="contact" readonly id="contact" class="layui-input">-->
                        </div>
                    </div>

                    <div class="layui-col-md6">
                        <label class="layui-form-label"  >客户联系电话:</label>
                        <div class="layui-input-block-html"  th:text="${schedule.telephone}">
                            <!--                            <input type="text" name="telephone"  readonly id="telephone" class="layui-input">-->
                        </div>
                    </div>
                </div>
            </div>

            <div class="layui-form-item">
                <div class="layui-row">
                    <div class="layui-col-md6">
                        <label class="layui-form-label"   >任务编号:</label>
                        <div class="layui-input-block-html"  th:text="${schedule.taskCode}"></div>
                    </div>

                    <div class="layui-col-md6">
                        <label class="layui-form-label "   >是否重点任务:</label>
                        <div style="margin-left: 120px;transform: translateY(7px);">
                        <span style="padding-left: 0px"  th:if="${schedule.iskeyTask eq '1'}">是</span>
                        <span style="padding-left: 0px" th:unless="${schedule.iskeyTask eq '1'}">否</span>
                        </div>
                    </div>
                </div>
            </div>

            <div class="layui-form-item">
                <div class="layui-row">
                    <div class="layui-col-md6">
                        <label class="layui-form-label"    >所需资源:</label>
                        <div class="layui-input-block-html" th:text="${schedule.rsName}">
                            <!--                            <input type="text" name="rsName" readonly  id="rsName" class="layui-input">-->
                        </div>
                    </div>

                    <div class="layui-col-md6">
                        <label class="layui-form-label"    >试验工时:</label>
                        <div class="layui-input-block-htm"   style="margin-top:8px;" th:text="${schedule.testDay}">
                        </div>
                    </div>
                </div>


                <div class="layui-form-item">
                    <div class="layui-row">
                        <div class="layui-col-md6">
                            <label class="layui-form-label febs-form-item-require"  >计划开始日期:
                            </label>
                            <div class="layui-input-block-htm"  name="planStartdate"   style="margin-top:8px;"
                                 th:text="${#dates.format(schedule.planStartdate,'yyyy-MM-dd')} +' '+${#dates.format(schedule.planStarttime,'HH:mm')}">
                            </div>
                        </div>

                        <div class="layui-col-md6">
                            <label class="layui-form-label"  >计划结束日期:</label>
                            <div class="layui-input-block-htm"  name="planEnddate"  id="planEnddate"   style="margin-top:8px;"
                                 th:text="${#dates.format(schedule.planEnddate,'yyyy-MM-dd')} +' '+${#dates.format(schedule.planEndtime,'HH:mm')}">
                            </div>
                        </div>

                    </div>
                </div>

                <div class="layui-form-item">
                    <div class="layui-row">
                        <div class="layui-col-md12">
                            <label class="layui-form-label"   >备注：</label>
                            <div class="  layui-input-block-html"
                                 th:text="${schedule.remark}"></div>
                        </div>
                    </div>
                </div>

                <div class="layui-form-item" id="attachfiles"  >
                    <label class="layui-form-label   layui-form-label-detail"   >任务相关文件：</label>
                    <div class="layui-input-block  layui-input-block-html" id="fileUploadBtn"></div>
                </div>

                 <div class="layui-form-item">
                    <div class="layui-row">
                        <div class="layui-col-xs12">
                            <label class="layui-form-label" style="width: 150px;">模型信息:</label>
                            <div class="febs-table-full"  style="margin-left: 170px;transform: translateY(-25px);">
                                <table lay-filter="taskModels" id="taskModels"
                                       lay-data="{id: 'taskModels'}"></table>
                            </div>
                        </div>
                    </div>
                </div>



            <div class="layui-form-item febs-hide">
                <button class="layui-btn" lay-submit="" type="button" lay-filter="task-edit-form-save"
                        id="save"></button>
<!--                <button class="layui-btn" lay-submit="" type="button" lay-filter="task-edit-form-submit"-->
<!--                        id="submit"></button>-->
            </div>
        </form>
    </div>
</div>


<script data-th-inline="javascript">
    var scheduleData = [[${schedule}]];
    var typeData = [[${type}]];

</script>
<script th:src="@{/febs/js/sypq/schedule/scheduleDetail.js(v=1)}"></script>

<style type="text/css">
    .layui-form-label {
        width: 150px !important;
    }

    .layui-input-block {
        margin-left: 150px !important;
    }

    .layui-table-view {
        .layui-table-tool {
            min-height: 0px !important;
            line-height: 0px !important;
            padding-top: 0px !important;
            padding-bottom: 0px !important;
        }
    }

    .layui-table-page {
        display: none !important;
    }

    .layui-input-block-html{
        line-height: 38px;
        box-sizing: border-box;
    }

</style>